const onresize = () => {
    let width = document.documentElement.clientWidth
    width /= 10
    document.documentElement.style.fontSize = width + 'px'
}
onresize()
window.addEventListener('resize',onresize)